how to define a function in cas. There are any references about how to define a function in cas in here. you can look below.